Project status change in project <%= @project.id %>

Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has changed
from <%= @old_badge_status %>
to <%= @new_badge_status %>.
The project entry was created on <%= @project.created_at %>.
<% if @new_badge_status == 'passing' %>
Time from project entry creation to passing = <%=
  distance_of_time_in_words(
    @project.created_at,
    @project.achieved_passing_at
  ) %>
<% end %>
See <%= @project_info_url %> for more.
